Remove load-time actions from a map

Introduction

A load-time action is an instruction embedded in a map to update the content of the map. They are executed when a map is opened in Visio. Actions such as Refresh OPCs, Replace Hyperlinks and Replace Data are effected through load-time actions. A map may not load properly if there is a spurious load-time action within it. Opening such a map in Visio may result in an error being reported in the User Actions Required window. The remedy is to remove the load-time actions from the map file. Actions such as Refresh OPCs will be repeated in a publication, but you may want to check what load-time actions there are to decide whether any need to be re-applied.

Method 1: VSDM and VSDX file formats

  1. Navigate to the map location
  2. Rename the file from mymap.vsdm or mymap.vsdx to mymap.zip
  3. Right click the Zip file and open the file with a file archiver, such as 7-zip.
  4. Find the solution1.xml file from navigating through the folders: visio\solutions.
  5. Open a map in Notepad.
  6. Ensure Word Wrap is switched off.
  7. Format > ensure 'Word Wrap' is not ticked.

  8. Go to the end of the file by pressing CTRL+End


  9. Go to the end of the 'LoadTimeProcessing' line, and insert the cursor before '</Map>'.

  10. Press ENTER to send '</Map>' to a new line.
  11. Highlight all of the 'LoadTimeProcessing' line.


  12. Delete it (or cut and paste it into a new text file for inspection).


  13. Save the file.
  14. Open the map in Visio.
  15. Ensure the stencil is attached.
  16. Save the file.

Method 2: VDX file format

  1. Open a map in Notepad.
  2. Ensure Word Wrap is switched off.
  3. Format > ensure 'Word Wrap' is not ticked.

  4. Go to the end of the file by pressing CTRL+End


  5. Go to the end of the 'LoadTimeProcessing' line, and insert the cursor before '</Map>'.

  6. Press ENTER to send '</Map>' to a new line.
  7. Highlight all of the 'LoadTimeProcessing' line.


  8. Delete it (or cut and paste it into a new text file for inspection).


  9. Note: If moved to a new text file, that text file could be saved with a '.xml' extension and opened in Internet Explorer for a more easily-read view.
  10. Save the file.
  11. Open the map in Visio.
  12. Ensure the stencil is attached.
  13. Save the file.